<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>Admin</title>
  <!-- plugins:css -->
  <link rel="stylesheet" th:href="@{/node_modules/mdi/css/materialdesignicons.min.css}">
  <link rel="stylesheet" th:href="@{/node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css}">
  <!-- endinject -->
  <!-- plugin css for this page -->
  <link rel="stylesheet" th:href="@{/node_modules/font-awesome/css/font-awesome.min.css}" />
  <!-- End plugin css for this page -->
  <!-- inject:css -->
  <link rel="stylesheet" th:href="@{/css/style.css}">
  <!-- endinject -->
  <link rel="shortcut icon" th:href="@{/images/favicon.png}" />
</head>

<body>
    <div class="container-fluid page-body-wrapper">
      <div class="row">
        <div class="content-wrapper full-page-wrapper d-flex align-items-center auth-pages">
          <div class="card col-lg-4 mx-auto">
            <div class="card-body px-5 py-5">
              <h3  class="card-title text-center mb-3" th:text="#{login.tip}">Login</h3>
              <h6 style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></h6>
              <form th:action="@{/user/login}">
                <!--<div class="form-group">
                  <label th:text="#{login.username}">Username or Email </label>
                  <input type="text" class="form-control p_input" required="required">
                </div>-->

                <div class="form-group">
                  <label  for="exampleInputEmail1" th:text="#{login.username}">Username or Email</label>

                  <input class="form-control" id="exampleInputEmail1" type="email" name="username" aria-describedby="emailHelp"
                         th:placeholder="#{login.username}" required="required" autofocus="autofocus">
                </div>
               <!-- <div class="form-group">
                  <label th:text="#{login.password}">Password </label>
                  <input type="text" class="form-control p_input" required="required">
                </div>-->
                <div class="form-group">
                  <label for="exampleInputPassword1" th:text="#{login.password}">Password</label>
                  <input class="form-control" id="exampleInputPassword1" type="password" name="password"
                         th:placeholder="#{login.password}" required="required" >
                </div>
                <!--<div class="form-group d-flex align-items-center justify-content-between">
                  <div class="form-check">
                    <label class="form-check-label">Remember me</label>
                    <input class="form-check-input" type="checkbox">
                  </div>

                  <a href="#" class="forgot-pass">Forgot password</a>
                </div>-->
                <!--<div class="form-group">
                  <div class="form-check">-->
                    <label class="form-check-label">
                      <input class="form-check-input" type="checkbox" value="Remember me">[[#{login.remember}]]</label>
                <!--  </div>
                </div >-->
                <div class="text-center" >
                  <button type="submit" class="btn btn-primary btn-block enter-btn" th:text="#{login.btn}" >Sign in</button>
                  <p class="mt-2 mb-3 text-muted">©2020-2021-chenchao</p>
                  <a class="mt-0 mb-1 btn btn-sm" th:href="@{login.html(l='zh_CN')}">中文</a>
                  <a class="mt-0 mb-1 btn btn-sm" th:href="@{login.html(l='en_US')}" >Enlish</a>
                </div>
                <div class="d-flex">
                  <button class="btn btn-facebook mr-2 col">
                      <i class="mdi mdi-facebook"></i> Facebook
                  </button>
                  <button class="btn btn-google col">
                      <i class="mdi mdi-google-plus"></i> Google plus
                  </button>
                </div>

                <p class="sign-up">Don't have an Account?<a href="#"> Sign Up</a></p>
              </form>
            </div>
          </div>
        </div>
        <!-- content-wrapper ends -->
      </div>
      <!-- row ends -->
    </div>
    <!-- page-body-wrapper ends -->
  </div>
  <!-- container-scroller -->
  <!-- plugins:js -->
  <script src="../../node_modules/jquery/dist/jquery.min.js"></script>
  <script src="../../node_modules/popper.js/dist/umd/popper.min.js"></script>
  <script src="../../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
  <script src="../../node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
  <!-- endinject -->
  <!-- inject:js -->
  <script src="../../js/off-canvas.js"></script>
  <script src="../../js/misc.js"></script>
  <!-- endinject -->
</body>

</html>
